#寻找水仙花数
for n in range(100,1000):
    nigh=n//100
    mid=n//10%10
    low=n%10
    if nigh**3+mid**3+low**3==n:
        print(n)